package org.apache.ocean;

import org.apache.lucene.index.Term;

/**
 *
 * @author jasonr
 */
public class ShardTerm {
  public String shardID;
  public Term term;
  
  public ShardTerm(String shardID, Term term) {
    this.shardID = shardID;
    this.term = term;
  }
  
  public String toString() {
    StringBuilder builder = new StringBuilder(150);
    builder.append(shardID);
    builder.append(":");
    builder.append(term.field());
    builder.append(":");
    builder.append(term.text());
    return builder.toString();
  }
  
}
